package com.just.springbootmessage.rabbitmq;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class RabbitMessageReceiver2 {
    private static final Logger logger=LoggerFactory.getLogger(RabbitMessageReceiver2.class);
    @RabbitListener(queues = RabbitContent.RABBIT_QUEUE1)
    public void receiveMessage(String message){
        logger.info("receive message2:"+message);
    }
}
